package com.yuxinyang.memory.admin.user.model;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户登录记录表
 * </p>
 *
 * @author 余秀良
 * @since 2019-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MemoryUserLoginRecord implements Serializable {
    public static final String ID = "id";
    public static final String USER_ID = "user_id";
    public static final String DEVICE_TYPE = "device_type";
    public static final String OS_VERSION = "os_version";
    public static final String LOGIN_IP = "login_ip";
    public static final String LOGIN_TYPE = "login_type";
    public static final String CREATE_TIME = "create_time";
    public static final String REMARK = "remark";
    private static final long serialVersionUID = 4742912825008522598L;
    /**
     * 用户表id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 0：移动端，1：浏览器
     */
    @TableField("device_type")
    private Integer deviceType;
    /**
     * 系统版本
     */
    @TableField("os_version")
    private String osVersion;
    /**
     * 用户登录ip
     */
    @TableField("login_ip")
    private String loginIp;
    /**
     * 第三方登陆类型 weibo、qq、wechat 等
     */
    @TableField("login_type")
    private String loginType;

}
